package com.cf.core.player.impl;

import com.cf.core.player.UserInfo;

/**
 * game-server-DefaultUserInfo
 *
 * @author <a href="2428922347@qq.com">Zhu mingming</a>
 * @info
 * @since 2018/5/8 下午 03:46
 */
public class DefaultUserInfo implements UserInfo {

    private Integer userId;

    private String userToken;

    private String name;

    private String head;

    public DefaultUserInfo(Integer userId, String userToken, String name, String head) {
        this.userId = userId;
        this.userToken = userToken;
        this.name = name;
        this.head = head;
    }

    @Override
    public Integer getUserId() {
        return userId;
    }

    @Override
    public String getToken() {
        return userToken;
    }

    @Override
    public String getName() {
        return name;
    }

    @Override
    public String getHead() {
        return head;
    }

    public void setUserToken(String userToken) {
        this.userToken = userToken;
    }

    public void setName(String name) {
        this.name = name;
    }

    public void setHead(String head) {
        this.head = head;
    }
}
